Geo.Core.OnAfterInitialize.add(function () {
    if(Geo.Core.Current.PrivateKey === null) {
        Geo.Core.Navigation.GoToEntry();
        return;
    } else if(Geo.Core.Current.ActionType === null) {
        Geo.Core.Navigation.GoToAction();
        return;
    }
    $('#btnUser').bind('click', function () {
        Geo.Core.Navigation.GoToUser(Geo.Core.Current.ActionType);
        return false;
    });
    $('#btnGeocache').bind('click', function () {
        Geo.Core.Navigation.GoToGeocache(Geo.Core.Current.ActionType);
        return false;
    });
    $('#btnLocation').bind('click', function () {
        Geo.Core.Navigation.GoToLocation(Geo.Core.Current.ActionType);
        return false;
    });
    $('#btnBack').bind('click', function () {
        Geo.Core.Navigation.GoToAction();
        return false;
    });
});
